package com.nuc.list1;

import java.util.ArrayList;

/**
 * Time    : 2023/3/30 10:55
 * Author  : 王摇摆
 * FileName: Demo9.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Demo9 {
    public static void main(String[] args) {
        ArrayList<String> person = new ArrayList<>();

        person.add("wgw1");
        person.add("wgw2");
        person.add("wgw3");

        String liString;
        liString = person.toString();
        System.out.println("将集合转换为字符串:"+liString);

    }
}
